package com.xr.miniprogram.service;

import com.xr.miniprogram.domain.MiniProgramComment;
import com.xr.miniprogram.domain.MiniProgramOrderUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xr.miniprogram.domain.vo.MiniProgramInsertOrderVO;


/**
 * <p>
 *  服务类
 * </p>
 *
 * @author da
 * @since 2023-09-19
 */
public interface IMiniProgramOrderUserService extends IService<MiniProgramOrderUser> {

    /**
     * 更新订单用户
     * @param miniProgramOrderUser
     * @return
     */
    Object updateOrderUser(MiniProgramOrderUser miniProgramOrderUser);

    /**
     * 根据serviceLogId查询订单用户
     * @param serviceLogId
     * @return
     */
    MiniProgramOrderUser getByServiceLogId(Long serviceLogId);

    /**
     * 根据id查询订单用户
     * @param orderUserId
     * @return
     */
    MiniProgramOrderUser getById(Long orderUserId);


    /**
     * 用户完成评论处理，修改订单用户及订单状态 待评价-->已完成
     * @param miniProgramComment
     */
    void updateStatusForComment(MiniProgramComment miniProgramComment);

}
